package topevery.syn.data.model;

import com.alibaba.fastjson.annotation.JSONField;
import lombok.Data;
import topevery.syn.data.model.codec.ModelTypeEnumCodec;

import java.time.LocalDateTime;

@Data
public class SepticTankData implements IGlbModel {

    @JSONField(name = "a")
    public Long gid;

    @JSONField(name = "b", serializeUsing = ModelTypeEnumCodec.class, deserializeUsing = ModelTypeEnumCodec.class)
    public ModelTypeEnum modelType = ModelTypeEnum.SepticTank;


    @JSONField(name = "c")
    public String clientKey;

    /// <summary>
    /// 甲烷浓度
    /// </summary>

    @JSONField(name = "d")
    public Double a05002_Rtd;
    //甲烷传感器

    @JSONField(name = "e")
    public String a05002_Flag;

    //市电状态
    @JSONField(name = "f")
    public Double g10001_Rtd;
    //市电状态传感器

    @JSONField(name = "g")
    public String g10001_Flag;

    @JSONField(name = "h")
    public LocalDateTime dbCreateDate;

    @JSONField(name = "i")
    public LocalDateTime clientDate;

    @JSONField(name = "j")
    public String modelJson;

    @Override
    public String getGlbModelKey() {
        return clientKey;
    }

    @Override
    public Long getGid() {
        return gid;
    }

    @Override
    public void setGid(Long gid) {
        this.gid = gid;
    }

    @Override
    public ModelTypeEnum getModelType() {
        return modelType;
    }

    @Override
    public void setModelType(ModelTypeEnum modelType) {
        this.modelType = modelType;
    }
}
